/**
 * 地址默认数据
 */
export const addressDefault = () => {
  return {
    id: 0,
    realName: '',
    phone: '',
    city: '',
    provinceId: 0,
    cityId: 0,
    district: '',
    districtId: 0,
    street: '',
    detail: '',
    postCode: 0,
    isDefault: false,
  }
}

/**
 * 个人中心菜单数据
 */
export const userMenuDefault = () => {
  return [
    {
      name: '订单中心',
      child: [
        {
          name: '我的订单',
          id: '1',
          pc_url: '/users/order_list',
        },
        {
          name: '评价晒单',
          id: '2',
          pc_url: '/users/evaluation_list',
        },
      ],
    },
    {
      name: '收藏夹',
      child: [
        {
          name: '收藏的宝贝',
          id: '3',
          pc_url: '/users/collect_products',
        },
        {
          name: '收藏的店铺',
          id: '4',
          pc_url: '/users/collect_merchant',
        },
      ],
    },
    {
      name: '我的钱包',
      child: [
        {
          name: '我的余额',
          id: '5',
          pc_url: '/users/user_balance',
        },
        {
          name: '我的优惠券',
          id: '6',
          pc_url: '/users/user_coupon',
        },
        {
          name: '我的积分',
          id: '7',
          pc_url: '/users/user_integral',
        },
      ],
    },
    {
      name: '历史记录',
      child: [
        {
          name: '我的足迹',
          id: '8',
          pc_url: '/users/browsing_history',
        },
      ],
    },
    {
      name: '售后服务',
      child: [
        {
          name: '售后/退款',
          id: 9,
          pc_url: '/users/refund_list',
        },
      ],
    },
    {
      name: '账户设置',
      child: [
        {
          name: '收货地址',
          id: '10',
          pc_url: '/users/address_list',
        },
        {
          name: '个人资料',
          id: '11',
          pc_url: '/users/user_info',
        },
        {
          name: '账号密码',
          id: '12',
          pc_url: '/users/user_account',
        },
      ],
    },
    {
      name: '规则协议',
      child: [
        {
          name: '用户协议',
          id: 'userinfo',
          pc_url: '/users/agreement_rules',
        },
        {
          name: '隐私协议',
          id: 'userprivacyinfo',
          pc_url: '/users/agreement_rules',
        },
        {
          name: '入驻协议',
          id: 'merincomminginfo',
          pc_url: '/users/agreement_rules',
        },
        {
          name: '关于我们',
          id: 'aboutusinfo',
          pc_url: '/users/agreement_rules',
        },
        {
          name: '资质证明',
          id: 'intelligentinfo',
          pc_url: '/users/agreement_rules',
        },
        {
          name: '平台规则',
          id: 'platfromruleinfo',
          pc_url: '/users/agreement_rules',
        },
        {
          name: '注销协议',
          id: 'useraccountcancelinfo',
          pc_url: '/users/agreement_rules',
        },
        {
          name: '注销声明',
          id: 'useraccountcancelnoticeinfo',
          pc_url: '/users/agreement_rules',
        },
        {
          name: '优惠券协议',
          id: 'coupon/agreement/info',
          pc_url: '/users/agreement_rules',
        },
      ],
    },
  ]
}

/**
 * 个人资料表单
 */
export const userFromDefault = () => {
  return {
    avatar: '',
    birthday: '',
    city: '',
    nickname: '',
    province: '',
    sex: 1,
  }
}

/**
 * 个人资料城市数据
 */
export const cityList = () => {
  return [
    { city: '北京市', child: [{ city: '北京市' }] },
    { city: '天津市', child: [{ city: '天津市' }] },
    {
      city: '河北省',
      child: [
        { city: '石家庄市' },
        { city: '唐山市' },
        { city: '秦皇岛市' },
        { city: '邯郸市' },
        { city: '邢台市' },
        { city: '保定市' },
        { city: '张家口市' },
        { city: '承德市' },
        { city: '沧州市' },
        { city: '廊坊市' },
        { city: '衡水市' },
      ],
    },
    {
      city: '山西省',
      child: [
        { city: '太原市' },
        { city: '大同市' },
        { city: '阳泉市' },
        { city: '长治市' },
        { city: '晋城市' },
        { city: '朔州市' },
        { city: '晋中市' },
        { city: '运城市' },
        { city: '忻州市' },
        { city: '临汾市' },
        { city: '吕梁市' },
      ],
    },
    {
      city: '内蒙古自治区',
      child: [
        { city: '呼和浩特市' },
        { city: '包头市' },
        { city: '乌海市' },
        { city: '赤峰市' },
        { city: '通辽市' },
        { city: '鄂尔多斯市' },
        { city: '呼伦贝尔市' },
        { city: '巴彦淖尔市' },
        { city: '乌兰察布市' },
        { city: '兴安盟' },
        { city: '锡林郭勒盟' },
        { city: '阿拉善盟' },
      ],
    },
    {
      city: '辽宁省',
      child: [
        { city: '沈阳市' },
        { city: '大连市' },
        { city: '鞍山市' },
        { city: '抚顺市' },
        { city: '本溪市' },
        { city: '丹东市' },
        { city: '锦州市' },
        { city: '营口市' },
        { city: '阜新市' },
        { city: '辽阳市' },
        { city: '盘锦市' },
        { city: '铁岭市' },
        { city: '朝阳市' },
        { city: '葫芦岛市' },
      ],
    },
    {
      city: '吉林省',
      child: [
        { city: '长春市' },
        { city: '吉林市' },
        { city: '四平市' },
        { city: '辽源市' },
        { city: '通化市' },
        { city: '白山市' },
        { city: '松原市' },
        { city: '白城市' },
        { city: '延边朝鲜族自治州' },
      ],
    },
    {
      city: '黑龙江省',
      child: [
        { city: '哈尔滨市' },
        { city: '齐齐哈尔市' },
        { city: '鸡西市' },
        { city: '鹤岗市' },
        { city: '双鸭山市' },
        { city: '大庆市' },
        { city: '伊春市' },
        { city: '佳木斯市' },
        { city: '七台河市' },
        { city: '牡丹江市' },
        { city: '黑河市' },
        { city: '绥化市' },
        { city: '大兴安岭地区' },
      ],
    },
    { city: '上海市', child: [{ city: '上海市' }] },
    {
      city: '江苏省',
      child: [
        { city: '南京市' },
        { city: '无锡市' },
        { city: '徐州市' },
        { city: '常州市' },
        { city: '苏州市' },
        { city: '南通市' },
        { city: '连云港市' },
        { city: '淮安市' },
        { city: '盐城市' },
        { city: '扬州市' },
        { city: '镇江市' },
        { city: '泰州市' },
        { city: '宿迁市' },
      ],
    },
    {
      city: '浙江省',
      child: [
        { city: '杭州市' },
        { city: '宁波市' },
        { city: '温州市' },
        { city: '嘉兴市' },
        { city: '湖州市' },
        { city: '绍兴市' },
        { city: '金华市' },
        { city: '衢州市' },
        { city: '舟山市' },
        { city: '台州市' },
        { city: '丽水市' },
      ],
    },
    {
      city: '安徽省',
      child: [
        { city: '合肥市' },
        { city: '芜湖市' },
        { city: '蚌埠市' },
        { city: '淮南市' },
        { city: '马鞍山市' },
        { city: '淮北市' },
        { city: '铜陵市' },
        { city: '安庆市' },
        { city: '黄山市' },
        { city: '滁州市' },
        { city: '阜阳市' },
        { city: '宿州市' },
        { city: '六安市' },
        { city: '亳州市' },
        { city: '池州市' },
        { city: '宣城市' },
      ],
    },
    {
      city: '福建省',
      child: [
        { city: '福州市' },
        { city: '厦门市' },
        { city: '莆田市' },
        { city: '三明市' },
        { city: '泉州市' },
        { city: '漳州市' },
        { city: '南平市' },
        { city: '龙岩市' },
        { city: '宁德市' },
      ],
    },
    {
      city: '江西省',
      child: [
        { city: '南昌市' },
        { city: '景德镇市' },
        { city: '萍乡市' },
        { city: '九江市' },
        { city: '新余市' },
        { city: '鹰潭市' },
        { city: '赣州市' },
        { city: '吉安市' },
        { city: '宜春市' },
        { city: '抚州市' },
        { city: '上饶市' },
      ],
    },
    {
      city: '山东省',
      child: [
        { city: '济南市' },
        { city: '青岛市' },
        { city: '淄博市' },
        { city: '枣庄市' },
        { city: '东营市' },
        { city: '烟台市' },
        { city: '潍坊市' },
        { city: '济宁市' },
        { city: '泰安市' },
        { city: '威海市' },
        { city: '日照市' },
        { city: '临沂市' },
        { city: '德州市' },
        { city: '聊城市' },
        { city: '滨州市' },
        { city: '菏泽市' },
      ],
    },
    {
      city: '河南省',
      child: [
        { city: '郑州市' },
        { city: '开封市' },
        { city: '洛阳市' },
        { city: '平顶山市' },
        { city: '安阳市' },
        { city: '鹤壁市' },
        { city: '新乡市' },
        { city: '焦作市' },
        { city: '濮阳市' },
        { city: '许昌市' },
        { city: '漯河市' },
        { city: '三门峡市' },
        { city: '南阳市' },
        { city: '商丘市' },
        { city: '信阳市' },
        { city: '周口市' },
        { city: '驻马店市' },
        { city: '省直辖县级行政区划' },
      ],
    },
    {
      city: '湖北省',
      child: [
        { city: '武汉市' },
        { city: '黄石市' },
        { city: '十堰市' },
        { city: '宜昌市' },
        { city: '襄阳市' },
        { city: '鄂州市' },
        { city: '荆门市' },
        { city: '孝感市' },
        { city: '荆州市' },
        { city: '黄冈市' },
        { city: '咸宁市' },
        { city: '随州市' },
        { city: '恩施土家族苗族自治州' },
        { city: '省直辖县级行政区划' },
      ],
    },
    {
      city: '湖南省',
      child: [
        { city: '长沙市' },
        { city: '株洲市' },
        { city: '湘潭市' },
        { city: '衡阳市' },
        { city: '邵阳市' },
        { city: '岳阳市' },
        { city: '常德市' },
        { city: '张家界市' },
        { city: '益阳市' },
        { city: '郴州市' },
        { city: '永州市' },
        { city: '怀化市' },
        { city: '娄底市' },
        { city: '湘西土家族苗族自治州' },
      ],
    },
    {
      city: '广东省',
      child: [
        { city: '广州市' },
        { city: '韶关市' },
        { city: '深圳市' },
        { city: '珠海市' },
        { city: '汕头市' },
        { city: '佛山市' },
        { city: '江门市' },
        { city: '湛江市' },
        { city: '茂名市' },
        { city: '肇庆市' },
        { city: '惠州市' },
        { city: '梅州市' },
        { city: '汕尾市' },
        { city: '河源市' },
        { city: '阳江市' },
        { city: '清远市' },
        { city: '东莞市' },
        { city: '中山市' },
        { city: '潮州市' },
        { city: '揭阳市' },
        { city: '云浮市' },
      ],
    },
    {
      city: '广西壮族自治区',
      child: [
        { city: '南宁市' },
        { city: '柳州市' },
        { city: '桂林市' },
        { city: '梧州市' },
        { city: '北海市' },
        { city: '防城港市' },
        { city: '钦州市' },
        { city: '贵港市' },
        { city: '玉林市' },
        { city: '百色市' },
        { city: '贺州市' },
        { city: '河池市' },
        { city: '来宾市' },
        { city: '崇左市' },
      ],
    },
    {
      city: '海南省',
      child: [
        { city: '海口市' },
        { city: '三亚市' },
        { city: '三沙市' },
        { city: '儋州市' },
        { city: '省直辖县级行政区划' },
      ],
    },
    { city: '重庆市', child: [{ city: '市辖区' }, { city: '县' }] },
    {
      city: '四川省',
      child: [
        { city: '成都市' },
        { city: '自贡市' },
        { city: '攀枝花市' },
        { city: '泸州市' },
        { city: '德阳市' },
        { city: '绵阳市' },
        { city: '广元市' },
        { city: '遂宁市' },
        { city: '内江市' },
        { city: '乐山市' },
        { city: '南充市' },
        { city: '眉山市' },
        { city: '宜宾市' },
        { city: '广安市' },
        { city: '雅安市' },
        { city: '巴中市' },
        { city: '资阳市' },
        { city: '阿坝藏族羌族自治州' },
        { city: '甘孜藏族自治州' },
        { city: '凉山彝族自治州' },
      ],
    },
    {
      city: '贵州省',
      child: [
        { city: '贵阳市' },
        { city: '六盘水市' },
        { city: '遵义市' },
        { city: '安顺市' },
        { city: '毕节市' },
        { city: '铜仁市' },
        { city: '黔西南布依族苗族自治州' },
        { city: '黔东南苗族侗族自治州' },
        { city: '黔南布依族苗族自治州' },
      ],
    },
    {
      city: '云南省',
      child: [
        { city: '昆明市' },
        { city: '曲靖市' },
        { city: '玉溪市' },
        { city: '保山市' },
        { city: '昭通市' },
        { city: '丽江市' },
        { city: '普洱市' },
        { city: '临沧市' },
        { city: '楚雄彝族自治州' },
        { city: '红河哈尼族彝族自治州' },
        { city: '文山壮族苗族自治州' },
        { city: '西双版纳傣族自治州' },
        { city: '大理白族自治州' },
        { city: '德宏傣族景颇族自治州' },
        { city: '怒江傈僳族自治州' },
        { city: '迪庆藏族自治州' },
      ],
    },
    {
      city: '西藏自治区',
      child: [
        { city: '拉萨市' },
        { city: '日喀则市' },
        { city: '昌都市' },
        { city: '林芝市' },
        { city: '山南市' },
        { city: '那曲市' },
        { city: '阿里地区' },
      ],
    },
    {
      city: '陕西省',
      child: [
        { city: '西安市' },
        { city: '铜川市' },
        { city: '宝鸡市' },
        { city: '咸阳市' },
        { city: '渭南市' },
        { city: '延安市' },
        { city: '汉中市' },
        { city: '榆林市' },
        { city: '安康市' },
        { city: '商洛市' },
      ],
    },
    {
      city: '甘肃省',
      child: [
        { city: '兰州市' },
        { city: '嘉峪关市' },
        { city: '金昌市' },
        { city: '白银市' },
        { city: '天水市' },
        { city: '武威市' },
        { city: '张掖市' },
        { city: '平凉市' },
        { city: '酒泉市' },
        { city: '庆阳市' },
        { city: '定西市' },
        { city: '陇南市' },
        { city: '临夏回族自治州' },
        { city: '甘南藏族自治州' },
      ],
    },
    {
      city: '青海省',
      child: [
        { city: '西宁市' },
        { city: '海东市' },
        { city: '海北藏族自治州' },
        { city: '黄南藏族自治州' },
        { city: '海南藏族自治州' },
        { city: '果洛藏族自治州' },
        { city: '玉树藏族自治州' },
        { city: '海西蒙古族藏族自治州' },
      ],
    },
    {
      city: '宁夏回族自治区',
      child: [{ city: '银川市' }, { city: '石嘴山市' }, { city: '吴忠市' }, { city: '固原市' }, { city: '中卫市' }],
    },
    {
      city: '新疆维吾尔自治区',
      child: [
        { city: '乌鲁木齐市' },
        { city: '克拉玛依市' },
        { city: '吐鲁番市' },
        { city: '哈密市' },
        { city: '昌吉回族自治州' },
        { city: '博尔塔拉蒙古自治州' },
        { city: '巴音郭楞蒙古自治州' },
        { city: '阿克苏地区' },
        { city: '克孜勒苏柯尔克孜自治州' },
        { city: '喀什地区' },
        { city: '和田地区' },
        { city: '伊犁哈萨克自治州' },
        { city: '塔城地区' },
        { city: '阿勒泰地区' },
        { city: '自治区直辖县级行政区划' },
      ],
    },
  ]
}
